<%@ page import="com.pixiv.Entity.User" %>
<%@ page import="com.pixiv.MysqlDAO.UserLoginDAO" %>
<%@ page import="com.pixiv.MysqlDAO.TempStoragePictureDAO" %><%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2021/11/15
  Time: 20:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>投稿图片</title>
    <link rel = "stylesheet" href = "${pageContext.request.contextPath}/common/layui/css/layui.css">
    <script src = "${pageContext.request.contextPath}/common/jquery3.6.0.js"></script>
    <script src = "${pageContext.request.contextPath}/common/layui/layui.js"></script>
</head>
<body>
<%
    User u = (User) session.getAttribute("GLOBAL_USER_OBJECT");
    if (u != null && u.getUserID() < 0)
    {
        UserLoginDAO.initLoginUserData(u);
    }

%>

<div id = "left_topInformation">

    <div>
        <i id = "pointToRight" class="layui-icon" style="
            cursor:pointer;width:39px;height:39px;float:left;margin-left:25px;margin-top:11px;">&#xe857;</i>
        <div>公告</div>
    </div>
    <style type = "text/css">
        #left_topInformation{
            width:100%;
            height:100%;
            position:fixed;
            left:0px;
            top:0px;
            background-color:rgba(0,0,0,0.25);
            z-index:20;
            display:none;
        }
        #left_topInformation>div:nth-child(1){
            width:150px;
            height:100%;
            position:fixed;
            left:0px;
            top:0px;
            background-color:rgba(255,255,255,0.9);
        }
    </style>



</div>
<div id = "head_test_0">
    <div class="layui-main layui-container">
        <div class="layui-col-md4">
            <!--<img style = "float:left;border:1px solid black;" src = "" width = "39px" height = "39px">-->
            <i id = "pointToLeft" class="layui-icon" style="
            cursor:pointer;width:39px;height:39px;float:left;">&#xe857;</i>
            <img id = "gotoPosition" src = "img/pixiv.png" width = "120px";height = "65px"  style="margin-left:-240px;margin-top:-10px;">
            <script type = "text/javascript">
                document.querySelector("#gotoPosition").onclick = function(){
                    location.href = "index.jsp";
                }
            </script>

            <div style = "line-height:49px;float:left;"></div>



        </div>
        <div class="layui-col-md3">
            <input type = "text" id = "searchInfo">
        </div>
        <div class="layui-col-md5">


            <ul class="layui-nav" style = "background-color:ghostwhite;">
                <li class="layui-nav-item">
                    <input type = "button"  style = "width:125px;height:55px;
                       border:0px;border-radius:39px;margin-left:15px;" value = "投稿" id = "upPictureToTarget"><!--按钮-->
                </li>
                <li class="layui-nav-item">
                    <a href="">个人中心<span class="layui-badge-dot"></span></a>
                </li>
                <li class="layui-nav-item" lay-unselect="">
                    <img src="/pixiv/PixivUserIconServlet?appType=getUserIcon" id = "UserIconDisplay" class="layui-nav-img">
                    <dl class="layui-nav-child" style = "width:150px;margin-left:-40px;margin-top:-16px;">

                        <img src = "/pixiv/PixivUserIconServlet?appType=getUserIcon"
                             style = "width:75px;height:75px;border-radius:35px;border:0px;">
                        <dd style = "color:rgba(20,20,20,0.7);">账号id:<%out.write(String.valueOf(u.getUserID()));%></dd>
                        <dd style = "color:rgba(20,20,20,0.7);">用户姓名:<%out.write(u.getName() );%></dd>
                        <dd style = "color:rgba(20,20,20,0.7);">e-mail:<%out.write(u.getEMail() );%></dd>
                        <dd style = "color:rgba(20,20,20,0.7);"><a href="set/setuser.jsp">设置</a></dd>
                        <dd style = "color:rgba(20,20,20,0.7);"><a href="login.jsp">退出登录</a></dd>
                    </dl>
                </li>
            </ul>


        </div>
    </div>
</div>

<div  id = "head_test_1" style = "width:100%;height:1000px;position:absolute;left:0px;top:60px;">

    <div class="layui-main layui-container" style = "background-color:rgba(235,235,235,1.0);width:840px;height:1000px;">

    </div>

</div>

<style type = "text/css">
    /*用户头像控件调整*/
    #UserIconDisplay{
        width:39px;
        height:39px;
        border:0px solid red;
        background-color:blanchedalmond;
        border-radius:39px;
        cursor:pointer;

    }
    /*查找信息*/
    #searchInfo{
        margin-left:100px;
        margin-right:100px;
        width:40%;
        height:39px;
        float:left;
        border:0px;
    }
</style>

</body>
</html>
